package com.hzqy.persistence.dao.weatherForecast;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.weatherForecast.WeatherForecastVo;
@Repository
public class WeatherForecastDao extends PersistenceDao<WeatherForecastVo, Integer>{
	
	public int insertWeather(WeatherForecastVo weatherForecastVo){
		return getSqlSession().insert(this.getNamespace()+"insertWeather", weatherForecastVo);
	}
	
	public int findWeatherCount(WeatherForecastVo weatherForecastVo) {
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "findWeatherCount", weatherForecastVo);
	}
	public List<WeatherForecastVo> findWeatherList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "findWeatherList", map);
	}
	public WeatherForecastVo selectWeather(WeatherForecastVo weatherForecastVo){
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectWeather", weatherForecastVo);
	}
	public int updateWeather(WeatherForecastVo weatherForecastVo){
		String namespace = this.getNamespace();
		return getSqlSession().update(namespace + "updateWeather", weatherForecastVo);
	}
	public int deleteWeather(int f_wf_id){
		String namespace = this.getNamespace();
		return getSqlSession().update(namespace + "deleteWeather", f_wf_id);
	}
}
